﻿<UserControl
    x:Class="DvachBrowser3.Views.Partial.MarkupControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:DvachBrowser3.Views.Partial"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">

    <VariableSizedWrapGrid Orientation="{x:Bind Orientation, Mode=OneWay}">
        <Button x:Name="BoldButton" Margin="2" Padding="2" ToolTipService.ToolTip="Жирный" Click="BoldButton_OnClick">
            <Viewbox Height="16" Width="16">
                <SymbolIcon Symbol="Bold" />
            </Viewbox>
        </Button>
        <Button x:Name="ItalicButton" Margin="2" Padding="2" ToolTipService.ToolTip="Наклонный" Click="ItalicButton_OnClick">
            <Viewbox Height="16" Width="16">
                <SymbolIcon Symbol="Italic" />
            </Viewbox>
        </Button>
        <Button x:Name="SpoilerButton" Margin="2" Padding="2" ToolTipService.ToolTip="Спойлер" Click="SpoilerButton_OnClick">
            <Viewbox Height="16" Width="16">
                <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xE727;" />
            </Viewbox>
        </Button>
        <Button x:Name="StrikeoutButton" Margin="2" Padding="2" ToolTipService.ToolTip="Зачёркнутый" Click="StrikeoutButton_OnClick">
            <Viewbox Height="16" Width="16">
                <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xE738;" />
            </Viewbox>
        </Button>
        <Button x:Name="MonospaceButton" Margin="2" Padding="2" ToolTipService.ToolTip="Моноширинный" Click="MonospaceButton_OnClick">
            <Viewbox Height="16" Width="16">
                <FontIcon FontFamily="Courier New" Glyph="F" />
            </Viewbox>
        </Button>
        <Button x:Name="UnderlineButton" Margin="2" Padding="2" ToolTipService.ToolTip="Подчёркнутый" Click="UnderlineButton_OnClick">
            <Viewbox Height="16" Width="16">
                <SymbolIcon Symbol="Underline" />
            </Viewbox>
        </Button>
        <Button x:Name="SupButton" Margin="2" Padding="2" ToolTipService.ToolTip="Верхний индекс" Click="SupButton_OnClick">
            <Viewbox Height="11" Width="11" Margin="5, 0, 0, 5">
                <FontIcon FontFamily="Segoe UI" Glyph="A" />
            </Viewbox>
        </Button>
        <Button x:Name="SubButton" Margin="2" Padding="2" ToolTipService.ToolTip="Нижний индекс" Click="SubButton_OnClick">
            <Viewbox Height="11" Width="11" Margin="5, 5, 0, 0">
                <FontIcon FontFamily="Segoe UI" Glyph="A" />
            </Viewbox>
        </Button>
    </VariableSizedWrapGrid>
</UserControl>
